home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 7661 / 7661.xpi / chrome / isreaditlater.jar / content / overlay.xul < prev    next >
Extensible Markup Language  |  2009-12-23  |  5KB  |  95 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay SYSTEM "chrome://isreaditlater/locale/isreaditlater.dtd">
  4.  
  5. <?xml-stylesheet href="chrome://isreaditlater/skin/isreaditlater.css" type="text/css"?>
  6.  
  7. <overlay id="RIL_overlay"
  8.     xmlns:html="http://www.w3.org/1999/xhtml"
  9.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  10.     
  11.     <hbox id="urlbar-icons" class="urlbar-icon">
  12.         <image hidden="true" id="RIL_urlbar_add" insertbefore="go-button" onclick="RIL.addCurrent();RIL.addedFromLocationBar();" tooltiptext="&ril.ReadLater;" />
  13.         <image hidden="true" id="RIL_urlbar_mark" insertbefore="go-button" onclick="RIL.markCurrentAsRead();" tooltiptext="&ril.MarkAsRead;" />        
  14.     </hbox>
  15.  
  16.     
  17.     <popupset id="mainPopupSet">    
  18.         
  19.         <panel id="RIL_clickToSaveTagsPanel" onpopupshowing="RIL.xul('clickToSaveTags').onkeyup = function(e) {if (e.which == 13)RIL.xul('clickToSaveTagsPanel').hidePopup()}" onpopuphiding="RIL.setTagsForClickToSave();">
  20.           <textbox id="RIL_clickToSaveTags" emptytext="&ril.clickToSaveTags;" />    
  21.         </panel>        
  22.         
  23.         <popup position="before_end" id="RIL_share" onpopupshowing="RILshare.populateShareMenu();event.stopPropagation();">
  24.             <label style="font-weight:bold;" value="Share on:" />
  25.             <vbox id="RIL_shareContent" />
  26.             <menu label="More...">
  27.                 <menupopup id="RIL_shareMoreContent" onpopupshowing="event.stopPropagation();" />
  28.             </menu>
  29.         </popup>
  30.                 
  31.     </popupset>
  32.     
  33.     <popup id="contentAreaContextMenu">
  34.       <menuitem id="RIL_context_saveLink" insertbefore="context-bookmarklink" label="&ril.ReadThisLink;" oncommand="RIL.clickSaveCallback();event.stopPropagation();"/>
  35.           
  36.       <menuitem id="RIL_context_clickMode" insertafter="context-bookmarkpage" label="&ril.clickToSaveMode;" oncommand="RIL.toggleClickToSaveMode();event.stopPropagation();"/>
  37.       <menuitem id="RIL_context_savePage" insertafter="context-bookmarkpage" label="Read This Page Later" oncommand="RIL.addCurrent();event.stopPropagation();"/>    
  38.  
  39.       <menuitem id="RIL_context_saveTabs" label="&ril.SaveAllTabs;" oncommand="RIL.saveTabs();event.stopPropagation();"/>
  40.     </popup>
  41.  
  42.     
  43.     <toolbarpalette id="BrowserToolbarPalette">        
  44.         <toolbarbutton id="RIL_toolbar_button" tooltiptext="&ril.ReadSomething;" type="menu-button"
  45.            label="&ril.ReadingList;" oncommand="RIL.readSomething()" class="chromeclass-toolbar-additional">
  46.                 <menupopup onpopupshowing="RIL.toggleReadingList();event.stopPropagation();return false;" />
  47.         </toolbarbutton>        
  48.     </toolbarpalette>
  49.     
  50.         
  51.     <statusbar id="status-bar">
  52.         <statusbarpanel 
  53.                 id="RIL_offlineProgress"
  54.                 class="statusbarpanel-iconic-text chromeclass-toolbar-additional"
  55.         hidden="true">
  56.         </statusbarpanel>
  57.         <statusbarpanel
  58.         hidden="true"
  59.                 id="RIL_textStatusButton"
  60.                 class="statusbarpanel-menu-iconic chromeclass-toolbar-additional"
  61.                 onclick="RIL.retrieveAndOpenTextForCurrentUrl()">
  62.         </statusbarpanel>
  63.         <statusbarpanel
  64.         hidden="true"
  65.                 id="RIL_shareStatusButton"
  66.                 class="statusbarpanel-menu-iconic chromeclass-toolbar-additional"
  67.                 popup="RIL_share">
  68.         </statusbarpanel>
  69.         <statusbarpanel
  70.         hidden="true"
  71.                 id="RIL_clickToSaveButton"
  72.                 class="statusbarpanel-menu-iconic chromeclass-toolbar-additional"
  73.                 onclick="RIL.toggleClickToSaveMode()">
  74.         </statusbarpanel>
  75.     </statusbar>
  76.     
  77.     <broadcasterset id="mainBroadcasterSet"> 
  78.         <broadcaster id="RIL_sidebarlist" 
  79.                          label="Read It Later"
  80.                          autoCheck="false"
  81.                          type="checkbox"
  82.                          group="sidebar"
  83.                          sidebarurl="chrome://isreaditlater/content/list.xul"
  84.                          sidebartitle="Read It Later"
  85.                          oncommand="toggleSidebar('RIL_sidebarlist');" />
  86.     </broadcasterset> 
  87.     
  88.     
  89.     <script type="application/x-javascript" src="chrome://isreaditlater/content/RIL.js" />
  90.     <script type="application/x-javascript" src="chrome://isreaditlater/content/RILshare.js" />
  91.     <script type="application/x-javascript" src="chrome://isreaditlater/content/RILgr.js" />    
  92.     <!-- update RILsidebar to include any new scripts -->
  93.  
  94. </overlay>
  95.